summaryrefslogtreecommitdiff
path: root/cfg/fish_prompt[s].fish
diff options
context:
space:
mode:
Diffstat (limited to 'cfg/fish_prompt[s].fish')
-rw-r--r--cfg/fish_prompt[s].fish28
1 files changed, 14 insertions, 14 deletions
diff --git a/cfg/fish_prompt[s].fish b/cfg/fish_prompt[s].fish
index 34cbaca..c4c9b49 100644
--- a/cfg/fish_prompt[s].fish
+++ b/cfg/fish_prompt[s].fish
@@ -5,23 +5,23 @@ function fish_prompt
set -l home $HOME
if test "$cwd" = "$home"
- # if in ~
- echo -e (set_color red)"("(set_color white)"$user" \
- (set_color red)"⮞"(set_color white)"⮞"(set_color red)"⮞" \
- (set_color white)"~"(set_color red)")"(set_color normal)"\n⮞ "
- # (max⮞⮞⮞~)
- # ⮞
+ # if in ~
+ echo -e (set_color white)"╭"(set_color red)"("(set_color white)"$user" \
+ (set_color red)"⮞"(set_color white)"⮞"(set_color red)"⮞" \
+ (set_color white)"~"(set_color red)")"(set_color red)"\n╰"(set_color white)"⮞ "
+ # ╭(max⮞⮞⮞~)
+ # ╰⮞
else if string match -q "$home/*" $cwd
set -l relative (string replace "$home/" "~/" $cwd)
- # if in a ~ subdir
- echo -e (set_color red)"("(set_color white)"$user" \
- (set_color red)"⮞"(set_color white)"⮞"(set_color red)"⮞" \
- (set_color white)$relative(set_color red)")"(set_color normal)"\n⮞ "
+ # if in a ~ subdir
+ echo -e (set_color white)"╭"(set_color red)"("(set_color white)"$user" \
+ (set_color red)"⮞"(set_color white)"⮞"(set_color red)"⮞" \
+ (set_color white)$relative(set_color red)")"(set_color red)"\n╰"(set_color white)"⮞ "
else
- # if in any other dir
- echo -e (set_color red)"("(set_color white)"$user" \
- (set_color red)"⮞"(set_color white)"⮞"(set_color red)"⮞" \
- (set_color white)$cwd(set_color red)")"(set_color normal)"\n⮞ "
+ # if in any other dir
+ echo -e (set_color white)"╭"(set_color red)"("(set_color white)"$user" \
+ (set_color red)"⮞"(set_color white)"⮞"(set_color red)"⮞" \
+ (set_color white)$cwd(set_color red)")"(set_color red)"\n╰"(set_color white)"⮞ "
end
end